/*
 * @Author: zhangyang
 * @Date: 2020-12-03 14:58:35
 * @LastEditTime: 2022-01-09 17:53:18
 * @Description: 通用路由
 */
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/base/login',
    name: 'login',
    component: () => import('/src/views/base/login.vue'),
    meta: { title: '登录页' },
  },
  {
    path: '/404',
    name: '404',
    component: () => import('/src/views/404.vue'),
  },
  //  进入之后的默认页面
  {
    path: '/',
    component: () => import('/src/layout/index.vue'),
    redirect: '/welcome',
    children: [
      {
        path: '/welcome',
        name: 'welcome',
        component: () => import('/src/views/welcome.vue'),
        meta: { title: '欢迎使用' },
      },
    ],
  },
];

export default routes;
